package org.blogsite.greencode.service.impl;

import java.util.List;

import org.blogsite.greencode.bean.InstructorManage_Instructor;
import org.blogsite.greencode.dao.InstructorDao;
import org.blogsite.greencode.service.InstructorService;

public class InstructorServiceImpl implements InstructorService {
	
	private InstructorDao instructorDao;
	private InstructorManage_Instructor instructor;
	
	public InstructorDao getInstructorDao() {
		return instructorDao;
	}
	public void setInstructorDao(InstructorDao instructorDao) {
		this.instructorDao = instructorDao;
	}
	public InstructorManage_Instructor getInstructor() {
		return instructor;
	}
	public void setInstructor(InstructorManage_Instructor instructor) {
		this.instructor = instructor;
	}
	public void save(InstructorManage_Instructor instructor){
		instructorDao.save(instructor);
		
	}
	public List allSearch(){
		List search=instructorDao.allSearch();
		return search;
	}
	public List byIdSearch(String job_num){
		return instructorDao.byIdSearch(job_num);
	}
	public List byBlearSearch(String text) {
		return instructorDao.byBlearSearch(text);
	}
	public List byNameSearch(String name) {
		return instructorDao.byNameSearch(name);
	}
	public void modify(InstructorManage_Instructor instructor){
		instructorDao.modify(instructor);
	}
	public void delete(InstructorManage_Instructor instructor){
		instructorDao.delete(instructor);
	}
}
